<form name="watermark" action="index.php" enctype="multipart/form-data" method="post">
<input name="body" type="hidden" value="{$smarty.session.body}">
<input name="admin" type="hidden" value="1">
<input name="module" type="hidden" value="watermark">
<input name="act" type="hidden" value="mod">
<input name="watermark_id" type="hidden" value="{$smarty.get.watermark_id}">
<input name="referer" type="hidden" value="{ext->get_referer}">
<input type="hidden" name="data_x" value="{$watermark_data.x}">
<input type="hidden" name="data_y" value="{$watermark_data.y}">
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#C4CDD2"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>			
</table>

<table width="100%" cellpadding="0" cellspacing="0" style="border:1px solid #C4CDD2; border-top:0px;">
	<tr>
		<td width="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td style="border:5px solid white; border-bottom:0px">
			<table width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td style="border:1px solid #8CA2B1">
						{ext->class_function class="watermark" func="get_watermark_data" id=$smarty.get.watermark_id assign="watermark_data"}
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td height="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
							</tr>
						</table>
						<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F8F9F9" border="0">	
							<tr>
								<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
								<td width="25%" height="25" align="center" valign="middle">{t t='Watermark'}</td>
								<td height="25" style="padding:0px 0px 0px 25px">{t t='Watermarko vieta'}</td>
							</tr>
							<tr>
								<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
								<td width="25%" height="25" align="center" valign="middle">
									<img src="{$_var.watermark_path}/{$watermark_data.info.name}" width="{$watermark_data.info.width}" height="{$watermark_data.info.height}" alt="{$watermark_data.name}">
								</td>
								<td valign="top" style="padding:25px 25px 25px 25px">
									<table cellpadding="0" cellspacing="0" bgcolor="#F8F9F9" border="1">
										<tr height="25">
											<td width="25" valign="middle" align="center"><input type="radio" name="data_point" {if $watermark_data.y == 33.33 && $watermark_data.x == 33.33}checked{/if} onClick="document.forms['watermark']['data_y'].value=33.33; document.forms['watermark']['data_x'].value=33.33;"></td>
											<td width="25" valign="middle" align="center"><input type="radio" name="data_point" {if $watermark_data.y == 33.33 && $watermark_data.x == 66.66}checked{/if} onClick="document.forms['watermark']['data_y'].value=33.33; document.forms['watermark']['data_x'].value=66.66;"></td>
											<td width="25" valign="middle" align="center"><input type="radio" name="data_point" {if $watermark_data.y == 33.33 && $watermark_data.x == 100.00}checked{/if} onClick="document.forms['watermark']['data_y'].value=33.33; document.forms['watermark']['data_x'].value=100.00;"></td>
										</tr>
										<tr height="25">
											<td width="25" valign="middle" align="center"><input type="radio" name="data_point" {if $watermark_data.y == 66.66 && $watermark_data.x == 33.33}checked{/if} onClick="document.forms['watermark']['data_y'].value=66.66; document.forms['watermark']['data_x'].value=33.33;"></td>
											<td width="25" valign="middle" align="center"><input type="radio" name="data_point" {if $watermark_data.y == 66.66 && $watermark_data.x == 66.66}checked{/if} onClick="document.forms['watermark']['data_y'].value=66.66; document.forms['watermark']['data_x'].value=66.66;"></td>
											<td width="25" valign="middle" align="center"><input type="radio" name="data_point" {if $watermark_data.y == 66.66 && $watermark_data.x == 100.00}checked{/if} onClick="document.forms['watermark']['data_y'].value=66.66; document.forms['watermark']['data_x'].value=100.00;"></td>
										</tr>
										<tr height="25">
											<td width="25" valign="middle" align="center"><input type="radio" name="data_point" {if $watermark_data.y == 100.00 && $watermark_data.x == 33.33}checked{/if} onClick="document.forms['watermark']['data_y'].value=100.00; document.forms['watermark']['data_x'].value=33.33;"></td>
											<td width="25" valign="middle" align="center"><input type="radio" name="data_point" {if $watermark_data.y == 100.00 && $watermark_data.x == 66.66}checked{/if} onClick="document.forms['watermark']['data_y'].value=100.00; document.forms['watermark']['data_x'].value=66.66;"></td>
											<td width="25" valign="middle" align="center"><input type="radio" name="data_point" {if $watermark_data.y == 100.00 && $watermark_data.x == 100.00}checked{/if} onClick="document.forms['watermark']['data_y'].value=100.00; document.forms['watermark']['data_x'].value=100.00;"></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>					
					</td>	
				</tr>
			</table>
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td bgcolor="#FFFFFF" height="5" width="150">						
					<input onClick="doSubmit('watermark'); return false;" type="button" value="{t t="Išsaugoti pakeitimus"}" class="defaultFormButton" style="margin:10px ">
					</td>		
					<td bgcolor="#FFFFFF" height="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
				</tr>
			</table>
		</td>	
		<td width="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
